package com.lcq.study;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @ClassName LogT est
 * @Description
 * @Author lichuanqi
 * @Date 2021/12/23 18:09
 * @Version 1.0
 **/
public class LogTest {
    public static void main(String[] args) {

    }

    @Test
    public void jclTest(){
        Log log = LogFactory.getLog(LogTest.class);
        log.info("hello");
    }

    @Test
    public void sl4jTest(){
        Log log = LogFactory.getLog(LogTest.class);
        log.error("hello");
        Logger logger = LoggerFactory.getLogger(LogTest.class);
        logger.error("hello");
    }

}
